package com.itheima.dao;

import com.itheima.domain.User;

import java.util.List;
/**
 * @Author 王加鑫
 * @Date 2021/7/22 22:38
 * @Since JDK 1.9
 */
public interface UserDao {

/*    @Select("insert into user values(null,#{name},#{age})")*/
    public void save(User user);

/*    @Update("update user set name = #{name},age = #{age} where id = #{id}")*/
    public void update(User user);

/*    @Delete("delete from user where id = #{id}")*/
    public void delete(Integer id);

/*    @Select("select * from user where id = #{id}")*/
    public User findById(Integer id);

/*    @Select("select * from user")*/
    public List<User> findAll();
}
